package com.sk.weichat.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.weichat.R;
import com.sk.weichat.bean.SubjectItemBean;

import java.util.List;

/**
 * @Author: chenzl
 * @ClassName: SelectSubjectItemAdapter
 * @Description: 已选标签
 * @CreateDate: 2019/10/25 11:14
 */
public class SelectSubjectItemAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public SelectSubjectItemAdapter(@Nullable List<String> data) {
        super(R.layout.layout_select_subject_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.addOnClickListener(R.id.tv_subject);
        TextView tv_subject = helper.getView(R.id.tv_subject);
        tv_subject.setText(mContext.getString(R.string.subject,item));
    }
}
